parse.buxco
function creates a local database representation of a given file to facilitate fast retrieval and ultimately analysis. The user should only use parse.buxco
with parse.buxco.basic
mainly used for testing purposes. parse.buxco(file.name = NULL, table.delim = "Table", burn.in.lines = c("Measurement", "Create measurement", "Waiting for", "Site Acknowledgement Changed"), chunk.size = 500, db.name = "bux_test.db", max.run.time.minutes = 60, overwrite = TRUE, verbose=TRUE, make.package = F, author = NULL, author.email = NULL)
parse.buxco.basic(file.name=NULL, table.delim="Table", burn.in.lines=c("Measurement", "Create measurement", "Waiting for", "Site Acknowledgement Changed"))
db.name
should be overwritten if exists.
parse.buxco
function returns a BuxcoDB
object.
The parse.buxco.basic
function returns a data.frame
.
parse.buxco
function reads in the specified file in chunks. It uses the lines specified in burn.in.lines
to determine whether a 'break' has been reached. Each break signifies that a series of readings for several animals has been completed and so only upon reaching a break is measurement data written to the database for the completed measurement sets. Because of this, there will always be some memory overhead in proportion to the number of readings in each series irrespective of chunk.size
. To access the database in R, use the convienience method retrieveData
.
BuxcoDB
, retrieveData
bux.db <- parse.buxco(file.name=buxco.sample.data.path(), db.name =tempfile())
head(retrieveData(bux.db))
Run the code above in your browser using DataLab